# ---- Project ----
cmake_minimum_required(VERSION 3.14)

project(mdb_interface)
set(TARGET_LIB ${PROJECT_NAME})
set(BUILD_DIR temp)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

set(APP_INSTALL_DIR opt/bmc/apps/${PROJECT_NAME})
install(DIRECTORY gen/ DESTINATION ${APP_INSTALL_DIR})
install(DIRECTORY messages_gen/ DESTINATION opt/bmc/lualib/messages)
install(DIRECTORY json/ DESTINATION ${APP_INSTALL_DIR})
install(DIRECTORY messages DESTINATION ${APP_INSTALL_DIR})
install(DIRECTORY json/types/ DESTINATION opt/bmc/conf)
install(FILES mdb_config.json DESTINATION opt/bmc/libmc/lualib/mc/mdb)